package com.ls.lserp.modules.custom.dao;

import com.ls.lserp.common.persistence.CrudDao;
import com.ls.lserp.common.persistence.annotation.MyBatisDao;
import com.ls.lserp.modules.order.entity.FitProperty;
import java.util.List;

/**
  * @ClassName: FitPropertyDao
  * @Description: 量体接口
  * 
  * @author 曹学海
  * @date 2016年11月1日 下午3:09:49
  *
  */

@MyBatisDao
public interface FitPropertyDao extends CrudDao<FitProperty> {

	/**
	  * @Title: findSubFitProperty
	  * @Description: 查询子项目接口
	  * @param @param fitproperty
	  * @param @return
	  * @return List<FitProperty> 
	  * @throws
	  */
	
	public List<FitProperty> findSubFitProperty(FitProperty fitproperty);
	
	/**
	  * @Title: physicallyDeleteAllSub
	  * @Description: 物理删除所有子项目接口
	  * @param @param fitproperty
	  * @param @return
	  * @return int 
	  * @throws
	  */
	
	public int physicallyDeleteAllSub(FitProperty fitproperty);
	
	/**
	  * @Title: logicDeleteAllSub
	  * @Description: 逻辑删除所有子项目接口
	  * @param @param fitproperty
	  * @param @return
	  * @return int 
	  * @throws
	  */
	
	public int logicDeleteAllSub(FitProperty fitproperty);
	
	/**
	  * @Title: insertAllSub
	  * @Description: 插入所有子项
	  * @param @param fitproperty
	  * @param @return
	  * @return int 
	  * @throws
	  */
	
	public int insertAllSub(FitProperty fitproperty);
	
	/**
	  * @Title: getPropertyValue
	  * @Description: 查询是否重名(项目值)
	  * @param @param fitproperty
	  * @param @return
	  * @return FitProperty 
	  * @throws
	  */
	
	public FitProperty getPropertyValue(FitProperty fitproperty);
	
	/**
	  * @Title: getPropertyCd
	  * @Description: 查询是否重名(项目代码)
	  * @param @param fitproperty
	  * @param @return
	  * @return FitProperty 
	  * @throws
	  */
	
	public FitProperty getPropertyCd(FitProperty fitproperty);

	
	/**
	 * 查询需要导出的数据
	 * @param fitproperty
	 * @return
	 */
	public List<FitProperty> findAllListExport(FitProperty fitproperty);
	
	/**删除所有数据
	 * 
	 * @param fitproperty
	 * @return
	 */
	public int deleteAll(FitProperty fitproperty);

	/**查询量体子项数据
	 *
	 * @param fitproperty
	 * @return
	 */
	public int findSubCount(String value);

    public int insertSub(FitProperty fitproperty);
}
